package com.peak.distribution.entity.admin;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import com.peak.distribution.enums.Constants;
import com.peak.distribution.enums.SmsType;
import com.peak.spring.boot.api.entity.DefaultStategyEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Entity
@Table(name = "dis_sms_template")
@Data
@EqualsAndHashCode(callSuper=true)
public class DisSmsTemplate extends DefaultStategyEntity {
	
	private static final long serialVersionUID = Constants.DISTRIBUTION_VERSION;
	
	/** 短信模版名称 */
	private SmsType type;

	/** 短信模版内容 */
	private String template;

	@Enumerated(EnumType.STRING)
	public SmsType getType() {
		return type;
	}
}
